package com.bigchui.DesignPattern.proxy.staticproxy;

import com.bigchui.DesignPattern.proxy.Person;

/**
 * Created by wangzhen on 2019/3/10.
 */
public class StaticMeipo implements Person {
    private Object target;
    public StaticMeipo(Object target){
        this.target=target;
    }

    @Override
    public void findlove() {
        System.out.println("before增强");
        ((Person)target).findlove();
        System.out.println("after增强");
    }
}
